Solved the problem of validation rules in the Post model.