public void LoginUser() { functions db = GetComponent <functions>(); db.Conn(); string validator = ""; if (name.text == validator && password.text == validator) { errorhandler.text = "All Fields must be answered"; } else { db.LoginUser(name.text, password.text); errorhandler.text = result; } }