if the input type is color, its value cannot be empty string