change validation point to JS