Added login form validation.