When the submit button is clicked it goes to the wrong page