add login persistence