anchor.diff:  	        	truepwd = (rset.getString(1)).trim();
   	
           	//display the result
  -	        if(passwd.equals(truepwd))
  +	        if(password.equals(truepwd))
   		        out.println("<p><b>Your Login is Successful!</b></p>");
           	else
  -	        	out.println("<p><b>Either your userName or Your password is inValid!</b></p>");
  +	        	out.println("<p><b>Either your username or Your password is inValid!</b></p>");
   
                   try{
                           conn.close();
  
positive.code:         {
  
  	        //get the user input from the login page
          	String userName = (request.getParameter("USERID")).trim();
  	        String passwd = (request.getParameter("PASSWD")).trim();
          	//out.println("<p>Your input User Name is "+userName+"</p>");
          	//out.println("<p>Your input password is "+passwd+"</p>");
  
  
  	        //establish the connection to the underlying database
  
negative.code: 	        //select the user table from the underlying db and validate the user name and password
          	Statement stmt = null;
  	        ResultSet rset = null;
          	String sql = "select PWD from login where id = '"+username+"'";
  	        out.println(sql);
          	try{
  	        	stmt = conn.createStatement();
  