Input class working, changes in State