diff --git a/login/models.py b/login/models.py
index d40fb5f0dc9f53188588504932f7bb90db7c77bc..5177edba9836d8637f31f3d36e0e58aad68bc448 100644
--- a/login/models.py
+++ b/login/models.py
@@ -46,9 +46,7 @@ class User(db.Model):
         }
 
         # Relabel field names
-        for field in mapping:
-            old_field_name = field[0]
-            new_field_name = field[1]
+        for old_field_name, new_field_name in mapping:
             token[new_field_name] = token[old_field_name]
             del token[old_field_name]
 
diff --git a/login/static/base.js b/login/static/base.js
index cf5278f6ba22c1f8d02ebba6367e1b7eaea54b2a..dc700a3cef032417d7e23be2663ffcf5426688c9 100644
--- a/login/static/base.js
+++ b/login/static/base.js
@@ -45,12 +45,13 @@ function check_flow_expired() {
 
 // The script executed on login flows
 function flow_login() {
+
     var flow = $.urlParam('flow');
     var uri = api_url + 'self-service/login/flows?id=' + flow;
 
     // Query the Kratos backend to know what fields to render for the
     // current flow
-    $.ajax( {
+    $.ajax({
         type: "GET",
         url: uri,
         success: function(data) {
@@ -111,8 +112,7 @@ function flow_settings() {
     // Get the details from the current flow from kratos
     var flow = $.urlParam('flow');
     var uri = api_url + 'self-service/settings/flows?id=' + flow;
-
-    $.ajax( {
+    $.ajax({
         type: "GET",
         url: uri,
         success: function(data) {