fixed the password not saving issue