If/Then Statment with Input Text, PLEASE HELP, probably easy but

Ok this is probably a simple question but i cant seem to get a simple if/then statment working with an input text. Here is my AS

[AS]
on (release) {
password = inputName
if (password == “test”) {
getURL(“http://msn.com”,"_parent");
} else {
getURL(“http://ign.com”,"_parent");
}
}
[/AS]

For some reason when i type in test in the movieclip inputName it still sends me to ign.com. Everything is in the same frame and i just cant get it working. Thanks for your help.

Mike