Create CheckValidMsg.cpp

initial commit