logout fn added