added authentication so that only logged in users can view the projects and perform actions