Adds custom validator.js to get validation working