Make sure identity is logged out when cancelling profile editing.

The profile edit screen and login profile edit process need to be separated.