Conditionally submitting a form early.