The `customers/register` template renders the customer register page, which hosts the form for [customer account](https://help.shopify.com/en/manual/customers/customer-accounts) creation.

> Tip:
> Refer to the [customers/register template](https://github.com/Shopify/dawn/blob/main/templates/customers/register.json) and its [main section](https://github.com/Shopify/dawn/blob/main/sections/main-register.liquid) in Dawn for an example implementation.

<figure class="figure">
  <img src="/assets/themes/templates/customer-register.png" style="width: 100%; max-width: 550px;" alt="An example of the customer register template in Dawn">
</figure>

## Location

The `customers/register` template is located in the `templates` > `customers` directory of the theme:

```text
└── theme
    ├── layout
    ├── templates
    |   └── customers
    |     ├── register.json
    |     ...
    ...
```

## Content

You should include the [customer register form](#the-customer-register-form) in your `customers/register` template or a section inside of the template.

> Tip:
> If you're using a JSON template, then any HTML or Liquid code needs to be included in a [section](/docs/storefronts/themes/architecture/sections) that's referenced by the template.


### The customer register form

The customer register form can be added with the Liquid [`form` tag](/docs/api/liquid/tags/form#form-create_customer) and accompanying `'create_customer'` parameter. Within the form tag block, you need to include the following:

<table>
  <thead>
    <tr>
      <th>Input</th>
      <th><code>type</code></th>
      <th><code>name</code></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>First name</td>
      <td><code>text</td>
      <td><code>customer[first_name]</code></td>
    </tr>
    <tr>
      <td>Last name</td>
      <td><code>text</td>
      <td><code>customer[last_name]</code></td>
    </tr>
    <tr>
      <td>Email</td>
      <td><code>email</td>
      <td><code>customer[email]</code></td>
    </tr>
    <tr>
      <td>Password</td>
      <td><code>password</td>
      <td><code>customer[password]</code></td>
    </tr>
  </tbody>
</table>

For example:

```liquid

{% form 'create_customer' %}
  {{ form.errors | default_errors }}

  <div class="first-name">
    <label for="first-name">First name</label>
    <input type="text" name="customer[first_name]">
  </div>

  <div class="last-name">
    <label for="last-name">Last name</label>
    <input type="text" name="customer[last_name]">
  </div>

  <div class="email">
    <label for="email">Email</label>
    <input type="email" name="customer[email]">
  </div>

  <div class="password">
    <label for="password">Password</label>
    <input type="password" name="customer[password]">
  </div>

  <div class="submit">
    <input type="submit" value="Create">
  </div>
{% endform %}

```

## Usage

When working with the `customers/register` template, you should familiarize yourself with redirecting customers on account creation.

### Redirect customers on account creation

By default, when a customer creates an account, they're directed to the [home page](/docs/storefronts/themes/architecture/templates/index-template). However, you can specify a page to direct customers to using the `return_to` parameter of the Liquid [form tag](/docs/api/liquid/tags/form#form-return_to).

For example, the following directs customers to the all-products collection page:

```liquid

{% form 'create_customer', return_to: routes.all_products_collection_url %}
  <!-- form content -->
{% endform %}

```