implenting validation for comments