javascript validation added