add validations for the post title and the post content