Login progressdialog get dismissed when finished.

If login is successful, dialog is dismissed and toast is showed.
If login is not successful and the user cancels the new login dialog
presented to him/her, then Dashboard is showed.
Merge branch 'hotfix/dismiss-login-progress-dialog' into develop