input verification