update authentication methods and improve chatroom