do not hide loading dialog until after we get the user profile to check for username
Merge pull request #822 from jay-hodgson/release-28

merge change from release-27