added errors on edit
Merge pull request #174 from Useful-Innovation/johans-fixes

added errors on edit