Fixing direct access to users/index page when not logged in