made loading consistent (use now ProgressDialog for login too)