private void Login()
    {
        string UserName = txtUsername.Text.Trim();
        string Passwd   = txtpassword.Text.Trim();

        user        = new SystemUser();
        user.Uname  = UserName;
        user.Passwd = Passwd;
        if (user.Uname.Equals(""))
        {
            ShowMessage("Please Enter your System Username", true);
            txtUsername.Focus();
        }
        else if (user.Passwd.Equals(""))
        {
            ShowMessage("Please Enter Your System Password", true);
            txtpassword.Focus();
        }
        else if (!bll.IsUserAccessAllowed(user))
        {
            ShowMessage("System Access Failed", true);
        }
        else
        {
            user.Uname  = UserName;
            user.Passwd = Passwd;
            Access(user);
        }
    }