Refactoring of "Fixed 'Logged in as ...' displays invalid username during Profile Ed..."