adding persistent session

to avoid being logged out after every app restart