Fix redirect when form submitted