diff --git a/phpbbforum.module b/phpbbforum.module
index 199ab6f..06ae836 100644
--- a/phpbbforum.module
+++ b/phpbbforum.module
@@ -657,7 +657,7 @@ function phpbbforum_user($op, &$edit, &$account, $category = NULL) {
 
     $phpbb_user_data = $phpbb_user->data;
 
-    if (phpbb_api_get_user($account->name, '')) { // user exists in PHPBB
+    if (phpbb_api_get_user($account->original->name, '')) { // user exists in PHPBB
       //if (PHPBB_MODULE_DEBUG)
       //  _phpbbforum_set_message('User account: '. $account->name .' pass='. $pass .' found in phpBB');
       /*
