ApiController validation improvement