fix bug with identity 

If identity is other than email or username (eg. identity config is id), user unable to change password.