Added saved input values validation, but it still needs some work done.