allow to pass to validator whole object