Add encryption middleware to allow for password updates