add errors partial

* and added helper method