Add email validation and tests.