Persistent login implementation.