Moved checkError to on-input and check validity manually