adds ShowError utility to redirect to /?error='Bad request.' while still logging the underlying error