Login Button does not work

static private function EnterPassword():Void
{

	_root.loginBtn.onRelease = function () 
    {
		
		
		if (_root.nameField == "LOL") && (_root.passField == "LOL") 
		{
						trace("login");

		}
	
	
	else
	{
		trace("failed");
	}
	
	}
  
}

IF THE INPUT FIELDS are == to “LOL” then it should log in, guess what guys. it doesn’t work.