add validation js