added form validation js