added login requirement to view pages