would be nice to have a validation function that tested more of the properties, but this is fine for now.