Make form.submit() NOT work with modal forms (instead use form.modal_submit())