validate object