Added validation to posts