js validation added