I think if you just insert the control to your xpage then it will work. Make sure the login control does not generate any login or logout link, instead create your own login/ logout link with the extlib component using the urlparameter feature. But this is theory, I haven't tried it myself.