Added login/out in confeature_add_instance