added page redirects when not logged in