added authentication to view calendar