improve chatroom and user form validation