add validation for the post title