Fix and improve the quest validator.