Update validate's API