These interactions are checks of nickname and room code validity, where it is
relevant.
Also set a maximum room code length to 20 characters, at least for now.
Some changes in the existing code have been also made to avoid code duplication
and fix some issues.
Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>