Not everything is tested, but now we have a logout and a much cleaner
code.