fix error of editing user passwords