protected void VerifyButton_Click(object sender, EventArgs e) { LoginModule myLogin = new LoginModule(); if (myLogin.checkAvailability(TextBox2.Text, EmailTextBox.Text) >= 1) { ShowAvailabilityLabel.Text = "Username is available"; } else { ShowAvailabilityLabel.Text = "Username or/and email already exists!"; } }