update to validator.js