When I update a post, the field validation failed and the error message displayed, however the post is still saved to the database.
Only after this first submission, if not refrenshing the page, the validation will correctly prevent the submission.
I need to maintain a meta which is unique to each post so I write a remote validation to report duplication. But the duplicated value is saved anyway no matter valid or not, everything is messed up.