Register

<%= form_for @changeset, Routes.user_registration_path(@conn, :create), fn f -> %> <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %> <%= text_input f, :username, required: true, placeholder: "Username" %> <%= error_tag f, :username %>
<%= password_input f, :password, required: true, placeholder: "Password" %> <%= error_tag f, :password %>
<%= submit "Register" %>
<% end %>