Add basic ajax for login.html and admin.html