validation js updated