including template filename in validation exceptions