Fix user input with two new functions.