field validation and automatic conversion of non-string values to string