Validar, filtrar e colocar mascaras com o certify ficará bem mais fácil.
Install NPM package:
npm install certify.js
var certify = require('certify.js');
certify({
mail: {
data: 'teste@teste.com',
execute: {
isValid: {
mail: {
msg: 'Email invalido!. Favor por outro.',
}
}
}
}
}).then(function(isValid) {
//success
console.log(isValid);
}).catch(function(error) {
//caso ocorra erro
console.log(error)
});