login loop solve