Fix register process:
* Register the user into the database, support password hash with salt
still need to get the certificate.