Implemented invite codes in the backend.

Now users will only be able to sign up with a valid invite code that is
available on demand!