Adjust api for lua-resty-upstream
seperare login from connect flow