fix password moidfy logic