add a judge when recv pkey
public login and registry to webserver. done.
merge dev to master; login and registry has been published to webserver.