improve comment validation