protected void ButtonRegister_Click(object sender, EventArgs e)
        {
            string userName        = TextBoxUsername.Text;
            string email           = TextBoxEmail.Text;
            string password        = TextBoxPassword.Text;
            string confirmPassword = TextBoxConfirmPassword.Text;

            if (userName.Equals("") || password.Equals("'") || confirmPassword.Equals(""))
            {
                LabelErrorMessage.Visible = true;
                LabelErrorMessage.Text    = "Please enter the required fields marked with asterisk(*)";
            }
            else if (!password.Equals(confirmPassword))
            {
                LabelErrorMessage.Visible = true;
                LabelErrorMessage.Text    = "Password mismatch..Please try again";
            }
            else
            {
                UserXmlManipulation memberXml = new UserXmlManipulation();
                bool isMemberAdded            = memberXml.addUserCredential(userName, password, MEMBER_XML);

                if (isMemberAdded)
                {
                    LabelUserAdded.Visible = true;
                    LabelUserAdded.Text    = userName + " Added Successfully";
                }
                else
                {
                    LabelErrorMessage.Visible = true;
                    LabelErrorMessage.Text    = "User already exists or an error at backend";
                }
            }
        }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            String password = txtPassword.Text;
            String username = txtUsername.Text;

            lblAddUserMsg.Visible = false;
            int memberFlag          = 1;
            UserXmlManipulation obj = new UserXmlManipulation();

            if (obj.addUserCredential(username, password, memberFlag))
            {
                lblAddUserMsg.Visible = true;
                lblAddUserMsg.Text    = "Successfully Added!!";
            }
            else
            {
                lblAddUserMsg.Visible = true;
                lblAddUserMsg.Text    = "Unable to Add" + txtUsername.Text + "!!! Try Again";
            }
        }