@julian Basically I replaced the whole validateEmail() function to be only

function validateEmail(email, callback) { callback = callback || function () {}; var email_notify = $('#email-notify'); socket.emit('user.emailExists', { email: email, }, function (err, exists) { showSuccess(email_notify, successIcon); callback(); }); }

and I am getting "invalid email" error after accepting forum terms, of course I am not inserting an email but in this case a minecraft username