Login
<%= form_for @conn, Routes.user_session_path(@conn, :create), [as: :user], fn f -> %>
<%= if @error_message do %>
<% end %>
<%= label f, :email, class: "label" %>
<%= text_input f, :email, required: true, class: "input" %>
<%= label f, :password, class: "label" %>
<%= password_input f, :password, required: true, class: "input" %>
<%= label class: "checkbox" do %>
Keep me logged in for 60 days
<%= checkbox f, :remember_me %>
<% end %>
<%= submit "Login", class: "button is-link" %>
<% end %>
<%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>