addes styling for custom errors