Add is_required attribute to template