Why is my form not moving to next page when I click on the next button?