validation on reg corrected