Require uniq answer

I have a registry form in which you can specify your before and after names. However, if for example Niko is already taken, someone else can no longer take Niko as a first name, how can I solve this.

You would need to create a custom validation function using the gform_field_validation filter and the GFAPI class to search for previous entries using same value.