updated to minified validate.js