small validation added