Document management, Added the shares validation and share update.