added prompt=login support, addresses #323