provide default value if caption is not specified for viewData
correct error message in viewData