add joi schema to input