Effect of impurities on superconducting transitions