Remove if/else from login requirement checks, add  function to handle it, make sure group/view is not accessible if login required and user is not logged in
Rmoved unndeed use declaration
Fixed the functionality of login requirement check
Merge pull request #59 from CoBase/page-access-fix

Page access fix