Adding a feature that tracks what was in the input field if it is completed or errors