Fix bug with nonusers accessing user index page