Setting error_controller properly