add registration length validation