I'm attempting to make a log in type thing for something I'm working on, but It wont work correctly.

I've tried several different scripts, and none work properly.

Code:
on (release) {
 if (pass == "hey" && user == "wj") {
 gotoAndStop("explorer");
 } else {
 gotoAndPlay("begin");
 }
}
I have the correct variables, but no matter what I input, it thinks I'm putting in the wrong info and takes me back to the beginning, any ideas?