changing how validation is implemented