Advanced app: Username should be unique

Fixes #2647