set and save pw