adds email format validations, completes section 6.2.4