Clean up
Clean up and convert field to local
Clean up
Now save the session id on the preferences, so it doesn't have to re-log each time the service is reloaded