adding the validate.js