sample login and logout