data validation safeguards