Added form validation for email and password.