Added validation to comment posting.