logout method added