set boolean for user logged in. issue was with user being assigned new name whenever a new person entered chat.