Fixed email validation logic