Redirects if form is invalid