anchor.diff:                disableMagicButton(true);
                 var $form = $(event.target);
                 $.ajax({
  -                  type        : 'POST',
  -                  url         : $form.attr('action'),
  -                  data        : $form.serialize(),
  -                  dataType    : 'json',
  -                  encode      : true,
  -                  xhrFields   : { withCredentials:  true }
  +                type        : 'POST',
  +                url         : $form.attr('action'),
  +                data        : $form.serialize(),
  +                dataType    : 'json',
  +                encode      : true,
  +                xhrFields   : { withCredentials:  true }
                 })
                 .fail(error => {
                   if (error.responseText){
  -                    var data = JSON.parse(error.responseText);
  -                    if(data.error && data.error.message)
  +                  var data = JSON.parse(error.responseText);
  +                  if(data.error && data.error.message) {
                       $('#flash-content').html(data.error.message);
                       $('#flash-board')
                         .removeClass('alert-success')
  
positive.code: 
          script.
            $(document).ready(function() {
              function disableMagicButton () {
                var userEmail = $("input[name=email]").val();
                $('#sign-in-form')
                 .empty()
                 .html('<h3 class="text-center"> OK - we are sending a magic link to ' + userEmail + ' </h3>')
                 .fadeIn(100);
              }
  
              $('form').submit(function(event){
  
negative.code:                       .slideDown(400)
                        .delay(800)
                        .fadeIn();
                      disableMagicButton(false);
                    }
                  }
                })
                .done(data => {
                  if(data && data.message) {
                    var alertType = 'alert-';
                    switch (data.type) {
  