The magnetic field in luminous star-forming galaxies