Changing the order of operations to handle minimum criteria and validity checks all together instead of in multiple places.