<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <% if (locals.messages.errors) { %> <% messages.errors.forEach( el => { %>
    <div class="alert alert-danger"><%= el.msg %></div>
    <% }) %> <% } %>
    <form action="/signup" method="POST">
      <input type="text" name="userName" placeholder="User Name" />
      <input type="email" name="email" placeholder="Email" />
      <input type="password" name="password" placeholder="Password" />
      <input
        type="password"
        name="confirmPassword"
        placeholder="Confirm Password"
      />
      <input
        type="initialWeight"
        name="initialWeight"
        placeholder="What is your current weight(lbs)?"
      />
      <input
        type="goalWeight"
        name="goalWeight"
        placeholder="What is your Goal Weight(lbs)?"
      />
      <input type="age" name="age" placeholder="How old are you?" />
      <input type="submit" />
    </form>
  </body>
</html>
