I have a form with a submit button. I want to perform some checking before submitting the form. How do i cancel a submit after the user has clicked the button?