Added errors to template