%= form_remote_tag build_widget_url(:new), :class => "form-signin", :style => 'max-width: 500px;' do %>
<%= text_field_tag :first_name, nil, :class => "form-control", :placeholder => "First Name", :required => true %>
<%= text_field_tag :last_name, nil, :class => "form-control", :placeholder => "Last Name", :required => true %>
<%= text_field_tag :email, params[:email], :class => "form-control", :placeholder => "Enter a valid email address", :required => true, :type => 'email' %>
<%= text_field_tag :username, params[:username], :class => "form-control", :placeholder => "Enter a username", :required => true %>
<%= password_field_tag :password, nil, :class => "form-control", :placeholder => "", :required => true %>
<%= password_field_tag :password_confirmation, nil, :class => "form-control", :placeholder => "", :required => true %>
<%= submit_tag "Sign up", :disable_with => "Please wait...", :class => "btn btn-primary submit", :style => ''%>
<% end %>