Log out the user in case of change in server url.