input checks