login and logout server integration