added errors to the edit page