fix redirect on form submission