set pages to not be accessed by users unless they are logged in, working on view for listing page and CRUD content