Client Login Cunundrum

Im making a portfolio site, and I decided to take up some room, and because its a good eye deer, to make a Client Login, and depending on the combination of Username and Password, that would depend on which frame they were taken to in the time line…

I have two input boxes and a button. Input boxes are given instances (and variables) of “un” and “pw” respectivley.

The button uses this code :

on(release) {
if (un == "Lewwy" && pw == "Lewis") {
gotoAndStop("2");
} else {
trace("1");
}
}

It does the trace ok, I tried replacing the gotoAndStop(“2”); with trace(“2”) and it worked fine…

Anyone have a clue?