This web app uses the jQuery Validation plugin, which makes form validation as easy as adding attributes to a form control, and clicking Submit.
Read the full documentation and download the plugin here.