message validation added