Fixes the login popup to close before the details are entered.

Jira issue: APPPARTY-49
Merge pull request #17 from eelcocramer/APPPARTY-49

Fixes the login popup to close before the details are entered.