Recreating the single sign on logic for generating usernames

Here you go: