adding a loading indicator while determining if user has proper credentials