Adding connect-ensure-login and login session capabilities