Fixing inputErrorCheck.