added a simple list validation