Fixed bug where password is changed to a blank password when saving edit.