Add validation functions