Prevent a student from being registered to the same course twice