- flash.each do |_, value|
  .error= value

- provide(:title, 'Register')

%h1 Register
.row
  = form_for(@user, url: register_path) do |f|
    = render 'shared/error_messages'
    = f.label :username
    = f.text_field :username, class: 'form-control'
    = f.label :email
    = f.email_field :email, class: 'form-control'
    = f.label :password
    = f.password_field :password, class: 'form-control'
    = f.label :password_confirmation, "Confirmation"
    = f.password_field :password_confirmation, class: 'form-control'
    = f.submit "Create my account", class: "btn btn-primary"

- provide(:title, 'Register')

%h1 Register
.row
  = form_for(@user, url: register_path) do |f|
    = render 'shared/error_messages'
    = f.label :username
    = f.text_field :username, class: 'form-control'
    = f.label :email
    = f.email_field :email, class: 'form-control'
    = f.label :password
    = f.password_field :password, class: 'form-control'
    = f.label :password_confirmation, "Confirmation"
    = f.password_field :password_confirmation, class: 'form-control'
    = f.submit "Create my account", class: "btn btn-primary"

Remove redundant flash display (is in layout)
Remove redundant flash display (is in layout)
