Login state and current location are preserved when screen is rotated