public boolean searchLogin(String name, String pass) throws IOException //checks if user can log in
   {                                                                       //with info inputted
      br = new BufferedReader(new FileReader("output.txt"));
      boolean user = true;
      String line = br.readLine(), line2 = "";;
           
      while(line != null)
      {  
         line2 = getUser(line);
         
         if(name.equals(line2))
         {
            count++;
            
            line2 = getPass(line, count);
            if(pass.equals(line2))
            {
               user = true;
               line = null;
            }
            else
            {
               user = false;
               line = null;
            }
         }
         else
         {
            user = false;
            line = br.readLine();
         }
         line2 = "";
         count = 0;
      }
      return user;
   }