Fix email validation on user registration (fix #197)