Check if logged in before verifying

Not sure if this is needed but can't hurt to put it in for now.