Fix a bug with the updating of password fields