Please add the following code in ajaxcalls.js as displayed in below screenshot:

}, 3000);

After the “you can login” message is displayed the script will wait for 3 seconds and then display the login form. If you want to change the waiting duration replace the 3000 with your number (1sec = 1000 )