loginWithBlock add accounts array empty check