added a field check to var name

added a field check to var name