messages recording and validtaion