Crappy logout implementation

To be worked on later