Added login requirement for non-home pages