Add error messages when block and flat fields are empty