new check for duplicates in system/security

- added function to check for duplicate users and groups (by name and
ID)