added logic for already used invite codes

each invite should only be used once
requests that try to reuse old invites will be denied

before that fix the requests were partially allowed