set validation for weixin platform