Got log out working properly