private void buttLogin_Click(object sender, EventArgs e)
        {
            if (tbEmail.Text == "")
            {
                MessageBox.Show("Email is required");
                return;
            }

            if (tbPassword.Text == "")
            {
                MessageBox.Show("Username is required");
                return;
            }

            MessageResponse result = AuthRequests.postLogin(tbEmail.Text, tbPassword.Text);

            if (result.message == "Login successful!")
            {
                lblError.Text = "";
                GlobalVariables.bIsLoggedIn = true;
                GlobalVariables.userPanel = new Forms.UserForm();
                GlobalVariables.userPanel.Show();
                if (GlobalVariables.user.public_key != "")
                {
                    Functions.RSA.setPrivateKey(RegistryData.getRegistryPrivateKey());
                }
                this.Hide();
            }
            else
            {
                lblError.Text = result.message;
            }
        }