Fix cursor color for invalid input