Refactor json schema validation to use `Activemodel` validation