Add register function in CredentialManager