Move validation into a validation module, rather than crate root