Brian: Just Update the login function to create a proper URL.