Fix bug with value element ```options.num```
Fixed error style when switching between valid and invalid value.