Filter and sanitize input data before validation