Added validator.js, validate email server side on registration

Fix for #1752