How to avoid legal problems in business