Added user input verification