helper err_class(field_name) retorna 'invalid'