Fixed log out mechanism, minor view changes for index.