Create valid.js

Form validation:
Check email
Check terms checkbox is checked
Check name isn't empty
Checkout how html5 form validation works