Got input checking done