Flash 8, Actionscript, Password help, please

Hello! I was very excited to see that the password tutorial on the main site worked, unfortunatly, I encountered a problem that is seriously frustrating me.

Using this code:

password = inputName

if (password == “Password”) {
answer = gotoAndPlay(Cover);
} else {
answer = “Access denied!” ;
}

It won’t play Cover, instead, the text field disappears along with the “Enter Password,” yet the button stays. I’m not sure if there’s something wrong with my code or not, please help! D:

Thanks in advance.