Does something like this help?
<table><tr><td>New Password:</td><td><input id="newpassword" type="password" validate="customValidatorGroupName" customFn="this.length >= 6;" custom="Invalid password, the password must be 6 characters or longer." /></td></tr><tr><td></td><td><input type="submit" value="Submit" onclick="return validate('customValidatorGroupName');"></td></tr></table>