Legal considerations when planning a business