added a validator