When an `optional` input had already validated and had the corresponding class, remove that class when value changed to empty