fix the jquery events for validation