Fix email validation

Was the same javascript for validateText, but should have been validateEmail