consolidate error styling