Persistent login security improvements