Adding code for saving course selection on the enrolled courses table