Api validator
Custom validator
Improved output and error response for API