add error classes for css markup