message validation

Message validation is ready for issues #16 #17 #18 #20