Fix email validation

Was the same javascript for validateText, but should have been validateEmail
Merge pull request #483 from adamrp/fix_email_validation

Fix email validation