fixed infinite login when having multiple accounts