Signup Code field is there but not needed, it work without code or with wrong code

Signup Code field is there when signup but it works to get registrated without code or with wrong code.

How to fix this?