many fixes for chat message. need to handle login.