update save_pwd()