Merge pull request #17450 from nabinhait/auto-account-creation-company-tree-dev

fix: Validate parent account of child company while creating new account based on parent company