added field validation to objects