Add check for course instance id