beginning of login/logout work

beginning of login/logout work