removed valid_email(), put the email validation in validate_email()