I'm applying for a position at a company and I authorized them to do a background check. When I received a copy of the background check that was performed, my old employer had given them my salary. I thought that this information was confidential and that employers were only allowed to give the dates of employment and job title. Obviously I was wrong? or is this illegal?