I want to show the user a progress dialog until a particular task is complete.
For example, after the user enters username and password it takes some time to connect as the username and password are validated. I want to show the progress bar to the user while waiting.