Add error class to created error paragraphs