Fixed an annoying auth problem. Also removed /logout because it is no longer needed.