Corrected a bug regarding failed login during testing.