Fix conditional login if not pages