Update user input code