only redirect some pages if not logged in