updated index with login required