started working on message validation