fixed null loginUrl