form redirects instead of 404 on bad request + bugfix