optionally disable form submission logic