highlight errors on edit