Replaced cookie with param to indicate logging in through popup