Made log out working.