redirect if not logged in but trying to access the photos page.