Registration code generation implemented