Fixed crash that occurred when using invalid login info.