adding styling and markup for submission-based errors