Problems with Login

Hello Forum users, I’ve got a problem, I’ve mysql database, php login script and Unity, which drops data to php $_POST variables, all is working perfectly (php script and unity code) except one strange thing =, when I’m trying to login, in debug it says “Works” it means that login gui should hide but it’s not hiding, here’s the problem, or it hides even if it says “Error”, here is a code :
`public class login_menu : MonoBehaviour {

string login_url = "http://atomrun.comxa.com/login.php";
string register_url = "http://atomrun.comxa.com/register.php";
string score_url = "http://atomrun.comxa.com/getscore.php";
string runs_url = "http://atomrun.comxa.com/getruns.php";
public string username = "";
string password = "";
string email = "";
string score;
string runs;
string messageline;

WWW w;

bool registering;
bool showgui;
bool start = false;
// Use this for initialization
void Start () {
	registering = false;
	showgui = true;
}

// Update is called once per frame
void Update () {

}

public void OnGUI() {
	if(showgui == true) {
	GUI.Label(new Rect(5,3, Screen.width, 25), messageline);
	if(registering != true) {
	if(GUI.Button(new Rect(Screen.width/2-20, Screen.height/2 + 30, 100, 25), "Register"))
	{
		registering = true;
	}
	GUI.Label(new Rect(Screen.width/2-85,Screen.height/2 - 90, 100, 25), "Username");
	GUI.Label(new Rect(Screen.width/2-85,Screen.height/2 - 60, 100, 25), "Password");
	username = GUI.TextField(new Rect(Screen.width/2-20,Screen.height/2 - 90, 100, 25), username, 64);
	password = GUI.PasswordField(new Rect(Screen.width/2-20, Screen.height/2 - 60, 100,25), password, "*"[0],32);
	if(GUI.Button(new Rect(Screen.width/2-20, Screen.height/2, 100, 25), "Enter"))
		{
				StartCoroutine(Login(username, password));
		}
	}
	else
	{
	GUI.Label(new Rect(Screen.width/2-85,Screen.height/2 - 90, 100, 25), "Username");
	GUI.Label(new Rect(Screen.width/2-85,Screen.height/2 - 60, 100, 25), "Password");
	GUI.Label(new Rect(Screen.width/2-85,Screen.height/2 - 30, 100, 25), "Email");
	username = GUI.TextField(new Rect(Screen.width/2-20,Screen.height/2 - 90, 100, 25), username, 64);
	password = GUI.PasswordField(new Rect(Screen.width/2-20, Screen.height/2 - 60, 100,25), password, "*"[0], 32);
	email = GUI.TextField(new Rect(Screen.width/2-20, Screen.height/2 - 30, 100,25), email, 128);
		if(GUI.Button(new Rect(Screen.width/2-20, Screen.height/2, 100, 25), "Register")) {
			if(username.Length >= 5 && password.Length >= 5 && email.Length > 5) {
					StartCoroutine("Register"); // реєструємо користувача
			}
		}
		if(GUI.Button(new Rect(Screen.width/2-20, Screen.height/2 + 30, 100, 25), "Back")) {
			registering = false;
		}
	}
  }
 else {
		GUI.Label(new Rect(5,5, 100, 25), "User:" + this.GetComponent<login_menu>().username);
		/*GUI.Label(new Rect(5,30, 100, 25), "Max score : " + score);
			GUI.Label(new Rect(5,55, 100, 25), "Total runs : " + runs);*/
		if(GUI.Button(new Rect(Screen.width - 105, Screen.height - 40, 100, 35), "Play")) {
			Application.LoadLevel(1);
		}
	}
 }

/*public IEnumerator GetStat() {
	WWWForm user = new WWWForm();
	user.AddField("username", username);
	user.AddField("email", email);
	var score_get = new WWW(score_url, user); // получаємо найбільший рекорд користувача
	yield return score;
	score = score_get.text;
	var runs_get = new WWW(runs_url, user); // получаємо кількість забігів користувача
	yield return runs;
	runs = runs_get.text;
	score_get.Dispose(); // очищаємо запрос рекорду
	runs_get.Dispose(); // очищаємо запрос забігів
	StopCoroutine("GetStat");
}*/

public IEnumerator Register() {
	WWWForm registering1 = new WWWForm();
	registering1.AddField("username", username);
	registering1.AddField("pass", password);
	registering1.AddField("email", email);
	var d = new WWW(register_url, registering1);
	yield return d;
	if(d.text == "Added"){
		registering = false;
	}
	else if(d.text == "Verify_Error") {
		registering = true;
		messageline = "User exists, pick another email, username and password";
	}
	else {
		print(d.text);
		registering = true;
	}
	d.Dispose();
	StopCoroutine("Register");
}

public IEnumerator Login(string login, string log_password) {
	WWWForm loginform = new WWWForm();
	loginform.AddField("username", login);
	loginform.AddField("pass", log_password);
	w = new WWW(login_url, loginform);
	yield return w;
	print(w.text);
	if(w.text == "Works") {
		showgui = false;
	}
	else
	{

	}
	w.Dispose();
}

}`
here’re screenshots :

if you can, help me please, I’m breaking my brains 3rd day T_T

oh, I forgot, here is php script :
<?php
username = _POST[‘username’];
password = _POST[‘pass’];
$bdpassword = md5($password);

$link = mysql_connect('/hided info/', '/hided info/', '/hided info/') or die('cant connect');
mysql_select_db('/hided info/') or die('cant choose db');

$query = "SELECT * FROM  `data` WHERE username = '{$username}' AND pass = '{$bdpassword}'";
$result1 = mysql_query($query);

if(mysql_num_rows($result1) == 0)
	echo "Error";
else
	echo "Works";
?>