restore password and localization