invite method takes the projectId parameter