added progressDialog to loginActivity.