Localization changes for dialog: Use dom.setText() instead of innerHTML

for dialog login Ui. Also changeing 'username' to 'User name' in
resource file