Added email validation.