Fixed login error logic.