fixing log out