fix object validator when validating relational fields