Fixed negative error for course quantity validity