alert(_("Passwords do not match"));
return false;
} else {
if ($("input[name='newpassword']").val().match(/^\s*$/)) {
if ($("input[name='newpassword']").val().match(/^\s/) || $("input[name='newpassword']").val().match(/\s$/)) {
alert(_("Password contains nothing except whitespace"));
alert(_("Password contains leading and/or trailing spaces."));
return true;
-