initinal version of login/logout