added logic to the create method in the companies controller