made login retry upon failure