/**
 * I keep forgetting to type the password when going back in history
 * and testing the code, so I wrote this.
 */
$('input[type=submit]#register').click(function(event) {
    var password = $('input[name="coach.password"]').val();
    if (!password.length) {
        alert("Don't forget to type a password!");
        return false;
    }
});
