Hotspot error modify

Dear Team,

I want to modify text error for “username and password invalid” as attached snapshot.

There I found numeric value comes instead of my given error comments in my Language.

Please advice where I have to do this??

I have my own hotspot profile name “ADN000”
Error.jpg

You can add information for the language used on the login.html to page, this is an example script that you can add to login.html

<div id="error" class='error'>
<script type="text/javascript">
var error="$(error)";
if(error=="credit limit reached"){
document.write('<div class="alert alert-danger"><i class="icon-attention-circled"></i>Batas kredit user <b>$(username)</b> sudah habis</div>');
}
else if(error=="uptime limit reached"){
document.write('<div class="alert alert-danger"><i class="icon-attention-circled"></i>Masa aktif user <b>$(username)</b> sudah habis</div>');
}
else if(error=="download limit reached"){
document.write('<div class="alert alert-danger"><i class="icon-attention-circled"></i>Kuota user <b>$(username)</b> telah habis</div>');
}
else if(error=="no valid profile found"){
document.write('<div class="alert alert-danger"><i class="icon-attention-circled"></i>Masa aktif user <b>$(username)</b> telah habis</div>');
}
else if(error=="invalid password"){
document.write('<div class="alert alert-danger"><i class="icon-attention-circled"></i>username / password tidak valid!</div>');
}
else if(error=="simultaneous session limit reached") {
document.write('<div class="alert alert-danger"><i class="icon-attention-circled"></i>User <b>$(username)</b> sudah login di device lain</div>');
}
else if(error){
document.write('<div class="alert alert-danger"><i class="icon-attention-circled"></i>$(error)</div>');
}
</script>
</div>

Below is my login.html script. Can you please guide me where to modify?

Internet Hotspot > login

$(if chap-id)

$(endif)