implemented new method for log out but unfinished