errors template as directive