solving the problem of password double encryption while updating User