add login persistence behaviour