Add ability to pass a parameter specifying the login endpoint