anchor.diff:            data: $j('input.login-credential').serialize(),
             success: function (data) {
               if (data.result==true) {
  -              $j('#result').html('Passed')
  -              $j('#submit-button').prop('disabled', false);
  +              $j('#check-result').html('Authentication succeeded')
  +              $j('form#openbis-space-form').submit();
               }
               else {
  -              $j('#result').html('Failed')
  -              $j('#submit-button').prop('disabled', true);
  +              $j('#check-result').html('Authentication failed!')
  +              $j('#submit-button').prop('disabled', false);
               }
             },
             beforeSend: function () {
  -            $j('#result').html('<%= image('spinner') %>');
  +            $j('#check-result').html('<%= image('spinner') %> Checking authentication');
             }
           }
       );
     }
   
  -  $j('#test-endpoint').on('click', function() {
  +  $j('#submit-button').on('click', function() {
  +    $j('#submit-button').prop('disabled', true);
       testEndpoint();
     });
   
  
positive.code: <%= form_for([@project,@openbis_space]) do |f| %>
  
      <%= f.error_messages %>
  
  
negative.code:       <%= f.text_field :space_name, :class=>"form-control login-credential"-%>
      </div>
  
      <span id="check-result"></span>
  
      <%= content_tag(:button,type:'button',class:'btn btn-primary',id:'submit-button'){@openbis_space.new_record? ? "Add" : "Update"} %>
      or
      <%= cancel_button(project_openbis_spaces_path(@project)) %>
  
  