Get rid of basic auth. Implemented logout.