login and logoff work