Added some js for forms and wrote validations