title: Login to Customer Account with Ajax Form
body: <p>Could you let me know if there's anything in the Shopify backend preventing me from including an ajax login form on our site? Basically I want customers to be able to login from anywhere.</p>
  
  <pre><code>&lt;form accept-charset="UTF-8" action="/account/login" id="customer_login" method="post" class="cd-form"&gt;
  &lt;input name="form_type" type="hidden" value="customer_login"&gt;
  &lt;input name="utf8" type="hidden" value="✓"&gt;
  
  
  &lt;p class="fieldset"&gt;
  &lt;label class="image-replace cd-email" for="signin-email"&gt;E-mail&lt;/label&gt;
  &lt;input class="full-width has-padding has-border" id="customer_email" type="email" placeholder="E-mail" name="customer[email]"&gt;
  &lt;span class="cd-error-message"&gt;Error message here!&lt;/span&gt;
  &lt;/p&gt;
  
  &lt;p class="fieldset"&gt;
  &lt;label class="image-replace cd-password" for="signin-password"&gt;Passwort&lt;/label&gt;
  &lt;input class="full-width has-padding has-border" id="customer_password" type="password"  placeholder="Password" name="customer[password]"&gt;
  &lt;span class="cd-error-message"&gt;Error message here!&lt;/span&gt;
  &lt;/p&gt;
  
  &lt;p class="fieldset"&gt;
  &lt;input type="checkbox" id="remember-me" checked&gt;
  &lt;label for="remember-me"&gt;Angemeldet bleiben&lt;/label&gt;
  &lt;/p&gt;
  
  &lt;p class="fieldset"&gt;
  &lt;input class="full-width" type="submit" value="Anmelden"&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>