Handling 'loggin' of a user and joining a lobby.