diff --git a/account.php b/account.php
index 9cb8db2327fd42da4d922ed11e0ec9c2923f6251..3b0de2deaa8cee33adca2422aa6575e4b2f5697f 100644
--- a/account.php
+++ b/account.php
@@ -30,7 +30,7 @@ elseif ($thisclient) {
     // Guest registering for an account
     if ($thisclient->isGuest()) {
         foreach ($thisclient->getForms() as $f) {
-            if ($f->get('type') == 'U') {
+            if ($f->get('object_type') == 'U') {
                 $user_form = $f;
                 $user_form->getField('email')->configure('disabled', true);
             }