Valley County sheriff, accused of fraud, appears in court