Reused the user input for registering