allow validator for the whole object