email validation. Closes #310