added Joi validations