added a progress dialog when trying to log in