validate_required_fields now accepts an array instead of string