Error thrown

Call to undefined method stdClass::validate()