create PostValidator, inject to PostsController