logout deleting and refreshing