changing username does not work

The reason is that `salt` gets removed when `$newUsername` gets set