Updated the uniqueness of name in document types