Cancel a submit after form validation