Added logic to reset a student's course id if that student already exists