Implemented login success check.