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

on (release) {
password = inputName
if (password == “test”) {
} else {

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.