modify verify code in front/back end