fixed bug when updating pw but make no change