Check for Connecting/Connected in LoginActivity

When turning off the screen while connecting the current version of QD gets stuck on the progress bar. This patch adds a check for the `Connected` status and also properly sends the `Connecting` status as soon as possible.