def validate_csv(row0, required_fields):
    """
    :param row0:
    :param required_fields:
    :return: a tuple, True if all requirements are met and a dictionary with the index for all the fields
    """
    for field in required_fields:
        if field not in row0:
            return False, {}
    field_pos = {}
    for idx, field in enumerate(row0):
        field_pos[field] = idx
    return True, field_pos