I've created a login box in a modal, but I'm not able to get the results back for some reason. I'm very new to javascript, so I'm guessing it's something obvious!

```
$('#login').click(function()
        {

          $("#buttons").hide();
          $("#progress").show();
          var email=$("#email").val();
          var password=$("#password").val();
          var dataString = 'email='+email+'&UserPW='+password;
          if($.trim(email).length>0 && $.trim(password).length>0)
          {
            $.ajax({
            type: "POST",
            url: "includes/php/ajaxLogin.php",
            data: dataString,
            cache: false,
            beforeSend: function(){
              $("#buttons").hide();
              $("#progress").show();
            ;},
            success: function(data){
              if(data)
              {
                console.log(data);
                if (data = "client/staff")
                {
                  $("#clientStaffToggleButtons").show();
                }
                if (data = "staff")
                {
                  $("body").load("staff/dashboard.php").hide().fadeIn(1500).delay(6000);
                }
                if (data = "client")
                {
                  $("body").load("myevent/dashboard.php").hide().fadeIn(1500).delay(6000);
                }
                if (data = "noEmail")
                {
                    $("#buttons").show();
                    $("#progress").hide();
                    //Shake animation effect.
                    $('#formLogin').shake();
                    $("#signInSubmit").val('Sign In')
                    $("#error").html("<span style='color:#cc0000'>Error:</span> Invalid username and password. ");
                }
                if (data == "noPW")
                {
                    $("#buttons").show();
                    $("#progress").hide();
                    //Shake animation effect.
                    $('#formLogin').shake();
                    $("#signInSubmit").val('Sign In')
                    $("#error").html("<span style='color:#cc0000'>Error:</span> Invalid username and password. ");
                }
              }
            }
          });

          }
          return false;

```

Any ideas on what may be wrong?

Much thanks!! :D

***EDIT***
Just to clarify, I'm getting the functions back (through console log) but they don't seem to be actually doing anything in the if-then statements, for example:

if (data = "client/staff")

doesn't seem to be doing anything, even if data returned was "client/staff"

to test it out go to fiestausa.com and hit login on the top-right