Fix password saving