A candidate may contribute any amount of their own money towards their own campaign that they want to, but are there not still accounting "rules" that must be followed to be within the law?
Yes and neither personal funds nor campaign money was used. It went through the Trump organization and was categorized, incrementally, as a retainer fee. The real problems stem from the fact there is purposeful obfuscation, to avoid disclosure.