check login completed. remaining main and portal.