updated manager search function

function checks if the manager's company and employee's company match so
managers can only view their employees and no other companies.