Mongodb id validation