Adding 'datatype' into the Ajax call for pin saves