updated users state with jinja