Made ensure valid a named param for confirm!, and added a test.