Add validation rule for Course.cost