Fix for re-encrypting passwords