set auth token after authentication in main activity and various cleanup.