When changing pwd period for Gen2, store in pwd_period member variable (...

...not period).