Add login persistence (WIP)