Seems when setting up the iPad you should not fill in the MDM server field. According to the documentation leave the field blank and that sorted the problem out. I followed the instructions on the link below.
https://docs.jamf.com/jamf-now/documentation/Supervising_Mobile_Devices_with_Apple_Configurator_2-5_or_Later.html