validate
Host
Payload
Method to validate the payload for the registerHost and editHost requests
Return
the error key if the payload is not valid as String, null otherwise
Parameters
hostName
The name of the host
hostAddress
The address of the host