validator example added