remove irrelevant things, and fix up login URL
remove obsolete login/logout code