add validation on posts