If & else problem

Hi im having a problem with some code which im trying to use in my site, I have a small input box with an instance name of Jump_txt and a var name passtext then a button next to it with actions attached :

on (release) {
password = passtxt
if (password == "3760") {
 gotoAndStop(10);
}   else {
 jump_txt.text = "0000"
}
}

so in theory when i enter 3760 in jump_txt it should go go frame 10 but instead it always does the code in the else part of the statement!

Im a real newbie and cheers to kirupa for one of the best sites to learn flash!!
cheers if u can help!