That deleted file turned out to be important, ooops.
Added logout function.