Pass object to validator