loginWithBlock add accounts.count > 0 check