Captive Portal - change login.html into another file name

Hello, just want to ask if it is okay to change the file name of the default login.html file in the hotspot folder for captive portal.

I am customizing my login page to have a promo after a certain period of time. Using the redirect function of Javascript, once the countdown timer ends in my login.html page, it will redirect to another login.html file, which name is login1.html to start a new countdown, unfortunately, once i login on login1.html, i got an error in hotspot debug log, login by http-pap, invalid username and password. I login one of my voucher that i always used, but i got that error, please help if that is possible or is there a solution on the error that i encountered. thank you.