index session fix

after session expired it still showed logout instead of login button,
that is fixed now.