fixed bugs with verifyUser function