fixes for the email validator
closes #411