Updating UserIdentity so that it generates the correct key
Updating logout action so that it kills the active session API key