Fixed bug where popover didn't work well when already logged in.