Added validation to Posts