Added logic for unauthorized users trying to view a page. Use CustomAuthorize to gain this functionality when decorating controllers or actions.