checking client registration code