Add error check
Add error controller and view