keep reload the page until it can be logged in