add an ability to stop form submitting