add isValid validator method to ObjectID object