validation with js
some fix