Join the room only after logged in
Fix the 'two octets' bug
Add better message formatting