reg validation