Fixed duplicate username error message

It will show an error only when a username is correct and there is a namespace conflict. It removes duplicate "already exists" errors for usernames.
Issue #8323
Redundant `self` detected.<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.