Updated error message if validation fails using docker-api