Added userid to Register Documents