formatting logout error