Added output log (else its confusing)
Fixed joi definition