added allowLocalLogin