diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb
index 3f189d4..22af7b3 100644
--- a/app/views/devise/registrations/new.html.erb
+++ b/app/views/devise/registrations/new.html.erb
@@ -1,18 +1,19 @@
Sign up
+<% if user_signed_in? %>
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
+ <%= devise_error_messages! %>
-<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
- <%= devise_error_messages! %>
+ <%= f.label :email %>
+ <%= f.email_field :email, :autofocus => true %>
- <%= f.label :email %>
- <%= f.email_field :email, :autofocus => true %>
+ <%= f.label :password %>
+ <%= f.password_field :password %>
- <%= f.label :password %>
- <%= f.password_field :password %>
+ <%= f.label :password_confirmation %>
+ <%= f.password_field :password_confirmation %>
- <%= f.label :password_confirmation %>
- <%= f.password_field :password_confirmation %>
-
- <%= f.submit "Sign up" %>
+ <%= f.submit "Sign up" %>
+ <% end %>
<% end %>
<%= render "devise/shared/links" %>