Added the validation rules of the Post model.