retry login if it fails