protected void add_Click(object sender, EventArgs e)
 {
     error.Visible = false;
     success.Visible = false;
     encrypt en = new encrypt();
     SQL sql = new SQL();
     string username = user.Value.ToString().Trim();
     string password = pas.Value.ToString();
     string conf = confirm.Value.ToString();
     bool checknewUser = sql.checkNewUser(username);
     if (checknewUser)
     {
         errmsg.InnerText = "This user already exsists!";
         error.Visible = true;
     }
     else
     {
         if (password == conf && password != string.Empty)
         {
             string enpassword = en.Encrypt(password);
             sql.addUser(username, enpassword);
         }
         else
         {
             errmsg.InnerText = "The passwords do not match..";
             error.Visible = true;
         }
     }
     Reload();
 }