Performing validation the right way