Fixed login success checker