fix password saving