If the user is logged in, the username should be set to `g.user.username`.