How to add validation to a custom API in Strapi?