Updating valid_email() helper function.