email validation and error highlighting