Geomagnetic activity and the high latitude magnetic field of the Sun