redirect if not logged in for basic pages