Add filter to make deleteAJAX work and add small validator.