implemented logout and utf 8