minor validation added.