Changed how input is checked