added object type to validator