fix the missing validation js. Very important