Validate data
validate_data.Rdvalidate_data() checks whether the provided dataset meets the minimum
row requirements. It first ensures that the dataset has at least one row,
and then enforces a minimum row threshold to maintain confidentiality.
If the validation fails, a Shiny validation error is triggered, preventing
further execution.