Fix check for student and course data, instead of the pointers.