public boolean ValidateLogin(String UID, String PWD)
		{
			boolean answer = false;
		try{
			
			 //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
	           // con=DriverManager.getConnection("jdbc:odbc:CriminalDB","","");
			    Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();
			 
		    
			      con = DriverManager.getConnection("jdbc:derby://localhost:1527//CriminalRecordDb;create=true");
			 
		         String str = "select * from UserCredential"; //where UserID == '" + UID + "' && Password == '" + PWD + "'";
			      
			     stmt= con.createStatement();
			      rs = stmt.executeQuery(str);
			      
			      if (rs.first())
			      {
			    	answer = true;  
			      }
			      
			
	     }
			catch(Exception se)
		   {
				answer = false;
			}
			
			return answer;
		}