showing a proper error message if no data is being provided