Add checks in controllers
add logAndDisplayError method
Fix notes
Merge pull request #38 from danilms/checks_in_controllers

Add checks in controllers