Fix validate.js