checkMessage.