John

Put validation code in a method to allow it to be called when needed