Modified the validation of values in properties like value, minValue, maxValue etc.