IEnumerator problems

I have a button that when clicked this happens. I had it working in JS but changing to C#
and im getting this error

error CS1525: Unexpected symbol (', expecting )‘, ,', ;’, [', or =’
on the line of IEnumerator WaitForRequest(WWW download)

void login() {
WWWForm form = new WWWForm();
form.AddField( “email”, usernameField );
form.AddField( “pass”, passwordField );

// Create a download object
WWW download = new WWW( authorize_url, form );

// Wait until the download is done
StartCoroutine(WaitForRequest(download));
	
IEnumerator WaitForRequest(WWW download)
{
	yield return download;

	if(download.error != null) {
   		Debug.Log("WWW Error: "+ download.error);
	} else {

		data = download.text;
		data2 = data.Split(","[0]);
		returnMsg = data2[0];
 

		if(returnMsg != "all_good"){
			authenticationError ="Wrong username or password";
		}else{
			id = parseInt(data2[1]);
			user = data2[2]; 
			Application.LoadLevel("charSelect");
		}
	}
}

}

I’m not sure you can declare a function inside another function. Or am I missiong something ?