You are changing the login.html file in the deployment/web folder, but this will be overwritten when you rebuild the application.
Instead, copy login.html from deployment/web to theme/web and modify it there. This will be deployed to the deployment folder when you build your application.
https://docs.mendix.com/howto/front-end/customize-styling-new/#custom-web
I hope this helps.