Updated course add validation to prevent duplicate course IDs