Array count check - No username and password caused crash