Fixed minor issue in constructing authentication URLs