added function to check IfInCorp and added that check to the index page.