Why my form is always stuck on submit?