add validation to post creation