added errors on edit