Added Validation rules to posts