Have a temporary variable that stores the value of what the user enters in the previous iteration, add a check that if new input == value held by temporary variable then "Error"