Why does my form not move to next page when next is clicked?