add log out functionality