Create formValidate.js

A js file to validate the file