New function added = loggedin users now don't have to set their names to join a chatroom