gets the message related information and checks the information.