fixed error where users not logged in couldnt show pages