Debugged login and logout pages.