When you change Username of a user AAA from xxx to yyy and use the old Username xxx for a user BBB, when you log in with Username xxx, the logged in user is AAA instead of BBB.
The login credentials are cached by the server and the cache is only cleared after server restart.