<%= form_for @user_session, :url => kryptonite_user_session_path do |f| %> <% if @user_session.errors.any? %>

<% @user_session.errors.keys.each do |key| %> <%= (key.to_s.humanize + " ") unless key == :base %> <%= @user_session.errors[key].first %> <% end %>

<% end %> <% if flash[:warning] %>

<%= flash[:warning] %>

<% end %> <% if flash[:notice] %>

<%= flash[:notice] %>

<% end %>

<%= f.label :login, "Login:" %> <%= f.text_field :login, :class => "kryptoniteTextField" %>

<%= f.label :password, "Password:" %> <%= f.password_field :password, :class => "kryptoniteTextField" %>

<%= f.check_box :remember_me %> Remember me

<%= f.submit "Log in", :class => "kryptoniteSubmit" %>

<% end %> <%= form_tag kryptonite_password_reset_url do %>

<%= label_tag :recover_email, "Email:" %> <%= text_field_tag :recover_email, params[:recover_email], :class => "kryptoniteTextField" %>

<%= submit_tag "Reset", :class => "kryptoniteSubmit" %>

<% end %>