<%= form_with(model: resource, url: session_path(resource_name), local: true,
              skip_enforcing_utf8: true, class: 'login-form',
              html: { novalidate: true }) do |f| %>
  <div class="username">
    <%= f.label :username, t('user_sessions.new.username') %>
    <%= f.email_field :username, id: 'user_username',
      'aria-label': t('user_sessions.new.username'), autofocus: true, autocomplete: 'off' %>
  </div>

  <div class="password">
    <%= f.label :password, t('user_sessions.new.password') %>
    <%= f.password_field :password, id: 'user_password',
      'aria-label': t('user_sessions.new.password'), autocomplete: 'off' %>
  </div>

  <%= f.submit t('user_sessions.new.submit'), class: 'submit' %>
<% end %>

<%= form_with(model: resource, url: session_path(resource_name), local: true,
              class: 'login-form', html: { novalidate: true }) do |f| %>
  <div class="username">
    <%= f.label :username, t('user_sessions.new.username') %>
    <%= f.email_field :username, id: 'user_username',
      'aria-label': t('user_sessions.new.username'), autofocus: true, autocomplete: 'off' %>
  </div>

  <div class="password">
    <%= f.label :password, t('user_sessions.new.password') %>
    <%= f.password_field :password, id: 'user_password',
      'aria-label': t('user_sessions.new.password'), autocomplete: 'off' %>
  </div>

  <%= f.submit t('user_sessions.new.submit'), class: 'submit' %>
<% end %>

Revert "Do not use UTF-8 enforcer in login form"
Revert "Do not use UTF-8 enforcer in login form"

This reverts commit 9ad8be4a3e64ff8bd9c7c538ea3cb6dbbc3bd6b7.
