logout fnction added