add errors classes