Add if statements to company and opportunity when user is signed in