Performs various data validation steps to ensure there are no errors in the supplied data.
See also
Other referendum data functions:
add_rfrnds(),
assert_vars(),
count_rfrnds(),
delete_rfrnds(),
download_file_attachment(),
edit_rfrnds(),
rfrnd(),
rfrnd_exists(),
rfrnds(),
rfrnds_bkp()