add a simple validation