Fix insertion on multiple courses

Adding flag to control multiple enrollments on the same course.
Adding restriction to allow class enrollments only on specific classes.