[enhancement] added check for already taken unique attributes
[enhancement] added check for already taken externalId attribute