Fix: logic to to check if student is enrolled in same course