work on login form. added validateForm() function.