complete functions with minimal UI
Login/Logout