Persistent login security improvements/bugfixes
Persistent login security improvements/bugfixes