Email validate problems :(

action = "send";
error1 = "User ID Required";
error2 = "Password Required";
error3 = "User ID & PASS. Required";
function post() {
if ((user == null) || (user == "")) {
error = error1;
action = "";
}
if ((password == null) || (password == "")) {
error = error2;
action = "";
}
if ((user == null) && (password == null) || (user == "") && (password == "")) {
error = error3;
action = "";
}
if ((validate(user)) && (user != error1) && (user != "") && (password!= error2) && (password != "")) {
action = "send";
gotoAndPlay("go");
}
}

this validatity seems to be not working properly with…
everything works but if i fill the user & the password field also it doesnt go to the level “go” and plays the frame :frowning: can some one help me out with this?

gotoAndPlay("go");