has-error class not applied to media fields