Answer the challenge question below

<%= form_tag([:authenticate, resource_name, :challenge_question], :method => :put) do %>
<%= hidden_field_tag :limit, params[:limit]%> <%- @challenge_questions.each_with_index do |cq, index| %>

<%= hidden_field_tag "challenge_questions[#{cq.id}][id]", cq.id%> <%= label_tag "challenge_questions[#{cq.id}][challenge_question]", cq.challenge_question %>
<%= password_field_tag "challenge_questions[#{cq.id}][challenge_answer]", nil, :placeholder => 'Answer', :class => 'wide', :style => 'font-size: 1.8em;padding:5px', :autofocus => (true if index == 0), :autocomplete => "off" %>

<% end %>

<%= submit_tag "Submit", :style => 'font-size:1.8em;'%> or <%= link_to "Cancel", destroy_user_session_path %>

<%= link_to "Forgot your challenge questions?", forgot_challenge_question_path(resource_name) %>

<% end %>