Added validation to posts.