Saving token in user defaults, cleaning up.