Add errors helper and template