SSP-1374 added logic to highlight invalid courses