adds email validation