adding id checking document