Added session verification to index.