Expanding validation on the registration code