ticket:5 login/logout implemented