Swap state is now remembered after relogin

fixes #1