Validating Comments Form in

I have a post page that includes a comment form at the bottom. I want to
validate the post form and display the error messages if validation
fails in the post page.

What is the best way to do this?