add a judge when recv pkey
public login and registry to webserver. done.