Dynamic text field input goto frame

Hi,
I want to be able to have these numbers read, and then it goes to the specific frame, if I change Event.ENTER_FRAME it works, but then it is always looking for the rfidread function. Any ideas?

login.addEventListener(Event.CHANGE,rfidread);

//READER FUNCTION 
function rfidread(e:Event):void {
    if (login.text == "17007ee9bb") {
        gotoAndStop("home");
    }
    if (login.text == "17007ee9dd") {
        gotoAndStop("home2");
    }
}

Thanks,
neas