Makes some changes to setup session
Regulates the verify code