add registration data length validate