Validators node.js implementation