added empty string validations for email and password in login