added comment data validation