Added form validation to other template pages

This is just the JavaScript. I will send you another pull request once I add some CSS stuff to style the Parsley notifications.