update form validation for login