diff --git a/apps/registration/views.py b/apps/registration/views.py
index 7e863781bcb1676930218c1a7efbcf3120e81352..1ec069a4b7823cc35ca25a1e06474055f0aaaffa 100644
--- a/apps/registration/views.py
+++ b/apps/registration/views.py
@@ -74,7 +74,7 @@ class UserCreateView(CreateView):
         user.profile.send_email_validation_link()
 
         soge_form = DeclareSogeAccountOpenedForm(self.request.POST)
-        if soge_form.data["soge_account"]:
+        if "soge_account" in soge_form.data and soge_form.data["soge_account"]:
             # If the user declares that a bank account got opened, prepare the soge credit to warn treasurers
             soge_credit = SogeCredit(user=user)
             soge_credit._force_save = True