Form validation is ridiculously easy with JQuery and the JQuery Validate plugin. You'll need JQuery, Validate, and Delegate.