added redirects for non-logged-in users