fix input verification