fix wsod on clicking the login button with some array-ception.