added joi and validation to stuff