Fixed up createUser() a bit to pass the tests and be a little more robust.