Adding a validator mapping utility