Modified the code reduced input in registration