inject userData in index.html template, as this one is only available to logged in users.