    $('#form').addClass('hide');
    if (login_state == -1.0) {core.endEpisode(-1, false);}
  });

  // Clean the previous states
  d3.selectAll('#username, #password, #subbtn').attr('disabled', null);
  d3.select('#popup').remove();
  var popupShown = false;

  // Random Popup 
  function showPopup () {
    if (popupShown) return;
    d3.selectAll('#username, #password, #subbtn').attr('disabled', 'disabled');
    var message
    if (Math.random() < 0.85) {
      message = 'Your session is ' + core.sample([