Refactor client script of the login page.
Fix a missed translation.