version 2.2 added public function to validate form, upgraded to jquery 1.9