Update validate.js

Block another functions similar to setTimeout.