email validation. Closes #309