add validation for posts