Added reg validation