"logout" method added