added after_failure hook (displays last errors)