Improved required validation for number fields

If a string is provided and string is of length 0, the validation fails