anchor.diff:                              window.location = "/account";
                           }
                       ).fail(function(res){
  -                        alert("Error: " + res.responseJSON.error);
  +                        $('#alerts').html('<div class="alert alert-error span12">'+res.responseJSON.error+'</div>');
                       });
                   } else {
  -                    alert("Passwords don't match");
  +                    $('#signupPassword').popover({
  +                    title: "Validation Error",
  +                    content: "Passwords don't match"
  +                }).click();
                   }
               } else {
  -                alert("A username and password is required");
  +                $('#alerts').html('<div class="alert alert-error span12">Username and password are required</div>');
               }
  +            e.preventDefault();
           });
  
positive.code: extends ../layout
  
  block content
      #login-container.row-fluid.well.center
          .span5
              h3 Login
              input.input-block-level(type="text", id="loginName", placeholder="Username", required)
              input.input-block-level(type="password", id="loginPassword", placeholder="Password", required)
              button#loginButton.btn.btn-primary.btn-block Login
          .span1
              h4.vertical-center OR
          .span6
              h3 Signup
              div
                  div.span6
                      input#signupFirstName.input-block-level(type="text", value="", placeholder="First Name", required)
                  div.span6
                      input#signupLastName.input-block-level(type="text", value="", placeholder="Last Name", required)
              input.input-block-level(type="text", id="signupUsername", placeholder="Username", required)
              input.input-block-level(type="email", id="signupEmail", placeholder="Email", required)
              input.input-block-level(type="password", id="signupPassword", placeholder="Password", required)
              input.input-block-level(type="password", id="signupConfirmPassword", placeholder="Confirm Password", required)
              button#signupButton.btn.btn-primary.btn-block Signup
  
  block scripts
      script.
          $("#loginButton").click(function(){
              var username = $("#loginName").val();
              var password = $("#loginPassword").val();
              if (username && password) {
  
negative.code:                         window.location = "/account";
                      }
                  ).fail(function(res){
                      $('#alerts').html('<div class="alert alert-error span12">'+res.responseJSON.error+'</div>');
                  });
              } else {
                  $('#alerts').html('<div class="alert alert-error span12">Username and password are required</div>');
              }
              e.preventDefault();
          });
          $("#signup-form").submit(function(e){
              var firstName = $("#signupFirstName").val();
              var lastName = $("#signupLastName").val();
              var username = $("#signupUsername").val();
  