Fixed email validation method.