Added validator.js