check array empty or not for login