Added user admin logic to index page