Added CourseUserRepository and did some things with the authorization