I'd prefer to use the function `getLoginName()` here.