Company index now checks that user is logged in and is a company

I added the functionality to the company index page to check that the user is logged in. It also checks the user's type against UserType::Company to make sure it is a company.