schema: handle validation