Submission and redirect not working