Wrote validation but it needs to be documented