logout works properly on new index.
#Issue7