Modified front end validate.js