fix production deploy config
add registration length validation