validate email addresses when creating and editing an account