changed identityKeyOfLoginUser() to public function.