fixed bug by changing hook for the verification process