add authentication and index