Fix broken regex and handle the case where the student is enrolled to SPIN