%= form_for(@user_session) do |f| %>
<% if @user_session.errors.any? %>
<%= pluralize(@user_session.errors.count, "error") %> prohibited this user_session from being saved:
<% @user_session.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :username %>
<%= f.text_field :username %>
<%= f.label :password %>
<%= f.password_field :password %>
<%= f.submit %>
<% end %>