Update login method to take params argument for login/logout urls.