Update validate.lib.sh