Fix for accidentally submitting the form