required users to be enrolled in course to view lesson details, fixed error in courses controller