Fix index page bug showing 'login' even though user had logged in.