Mask registration dialog when registering

- refresh userState after registration process is complete
Merge pull request #143 from settinghead/master

Mask registration dialog when registering