proper doc id validation