fixed it so error messages now show on edit pages