changed to validate.js