[fix bug 864822] Update username when a user changes his email.
Merge pull request #411 from akatsoulas/864822

[fix bug 864822] Update username when a user changes his email.