login and logout proto