Add some simple validation.