diff --git a/bin/account-manager-web.pl b/bin/account-manager-web.pl
index d3ea4e1ec0c5d33747dfd0f3793d20c053244f6d..09ea3129d63ec481682337313e32f8eb20b48d94 100755
--- a/bin/account-manager-web.pl
+++ b/bin/account-manager-web.pl
@@ -447,21 +447,21 @@ sub req_validate_token {
     unless ($authentication_token->load()) {
  	push @{$self->{'param_out'}{'errors'}}, "wrong_token";
 	&IdPAccountManager::Tools::do_log('error', "Failed to validate authentication token %s for sp_entityid %s",
-                                          $self->{'param_in'}{'token'}, $self->{'param_in'}{'sp_entityid'});
+                                          $self->{'param_in'}{'authentication_token'}, $self->{'param_in'}{'sp_entityid'});
 	return undef;
     }
     
     unless ($authentication_token->get('sp_entityid') eq $self->{'param_in'}{'sp_entityid'}) {
   	push @{$self->{'param_out'}{'errors'}}, "wrong_token_for_sp";
 	&IdPAccountManager::Tools::do_log('error', "Authentication token %s cannot be used for SP with entityid %s",
-                                          $self->{'param_in'}{'token'}, $self->{'param_in'}{'sp_entityid'});
+                                          $self->{'param_in'}{'authentication_token'}, $self->{'param_in'}{'sp_entityid'});
 	return undef;
     }
    
     ## delete the token
     unless ($authentication_token->delete()) {
         &IdPAccountManager::Tools::do_log('error', "Failed to delete authentication token %s",
-                                          $self->{'param_in'}{'token'});
+                                          $self->{'param_in'}{'authentication_token'});
     }
     
     ## create test accounts
@@ -482,7 +482,7 @@ sub req_validate_token {
     }
     
     
-    &IdPAccountManager::Tools::do_log('info', "Token validated for sp_entityid=%s;token=%s", $self->{'param_in'}{'sp_entityid'}, $self->{'param_in'}{'token'});
+    &IdPAccountManager::Tools::do_log('info', "Token validated for sp_entityid=%s;token=%s", $self->{'param_in'}{'sp_entityid'}, $self->{'param_in'}{'authentication_token'});
     
     $self->{'param_out'}{'sp_entityid'} = $self->{'param_in'}{'sp_entityid'};
     $self->{'param_out'}{'test_accounts'} = \@test_accounts;