Add a simple validation function to use after reformatting