Added some JQuery form validation.