add errors controller