updating validate.sh