fix bug 753563 - Support username changes

To clarify what I mean, try disabling the middleware in the settings and this works. I would recommend opening a ticket in Bugzilla to get rid of this middleware (assuming there aren't any legitimate use cases, which I doubt).