add some jquery events for validation