The problem is how to detect user authentication status. Now all login ui changes performed after GetProfile call. But I see your point, it's easier to set simple bool var to indicate whether user is authenticated. Will update the code soon.