add verify code function but not working