Added client form validation on login.html and chat.html