How can I stop a form to be sent again?