Client side validation of comments(title and content)