Got Log-out working properly