<%= form_for(resource, as: resource_name, url: session_path(resource_name),
             enforce_utf8: false, html: { novalidate: true }) do |f| %>
  <div class="username">
    <%= f.label :username, t('user_sessions.new.username') %>
    <%= f.email_field :username, autofocus: true %>
  </div>

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

  <% if devise_mapping.rememberable? -%>
    <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
  <% end -%>

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

<%= render "devise/shared/links" %>

<%= form_for(resource, as: resource_name, url: session_path(resource_name),
             enforce_utf8: false, html: { novalidate: true }) do |f| %>
  <div class="username">
    <%= f.label :username, t('user_sessions.new.username') %>
    <%= f.email_field :username, 'aria-label' => t('user_sessions.new.username'), autofocus: true %>
  </div>

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

  <% if devise_mapping.rememberable? -%>
    <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
  <% end -%>

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

<%= render "devise/shared/links" %>

Add aria labels to login form
Add aria labels to login form
