Use the error controller properly