add custom user identity and principal