wrap jquery and call to vailidate