Began working on checkInput()