Check duplicate courses upon adding