adding validation.js