Validates email and implements email validation unit test