Custom message In Mavlink

I am trying to send a custom message containing the PIN which when verified will only ARM the plane. But I am stuck at creating handler for the message.

I have edited the xml file.
added a function in GCS_mavlink
But unable to figure out what to do next?
If you could give a tutorial on how to do it, that would be helpful.

Thank you,