adding vanilla logout method