The legal checklist every first-time franchisee should follow