Added value variable to store input on error.