Next button of my form is not working correctly.