Fixed a validation bug for ForeignKeySearchInput