input checker