fixed password saving