add the validate code on the comment function