Why my form is stuck on submitting?