Fix event.preventDefault and form.