* add specs for collecting prompt validation errors, #542
* add errors array to prompt according to comments #542
* fix misplaced prompt collection code outside of the prompts iteration