add validate.js as dependency