add login to client and joint chatroom fixed