public int verify(User object)
	{   //Verifying Login Credentials
		
		String user= object.getUserId();
		
		String pass=object.getPass();
		String type=object.getType();  // Dont think this is necessary
		Connection con=ob.connect();
		int flag=0;

		
	  try{
		  if(con!=null)
		  {
			Statement st=con.createStatement();
			query="select Pass,Type from users where UId='"+user+"';";
			//System.out.println(" Not Null ");
			//System.out.println("in con");
		    rs=st.executeQuery(query);
		  }
		
         if(rs!=null)
       {
        	
         while(rs.next())
         {
        	 String pwd= rs.getString(1);
        	 String tp=rs.getString(2);  //Have to include check for type
        	  System.out.println(pwd);                             //Necessary for Sprint 2
        	 if(pass.equals(pwd))
        	 { 
        		 if(tp.equals("user"))
        	     flag=1;
        		 if( tp.equals("admin"))
        	     flag=2;
        		 if ( tp.equals("cop"))
        			 flag = 3;
        	 }
        	
         }
         
       }  
    }

	
	catch(SQLException e )
	{
		System.out.println(e.getMessage());
	}
	
	finally{
		try{
			 
			con.commit();
			
		}
		catch(Exception e){}
	}
	return(flag);
   
}