Restore the last active tab when logging in