js validation update