New input checking