Here's how to keep your business out of legal trouble.