partially completed validation with bugs in email validation