protected boolean testPassword() 
	{
		boolean foundUserName = false;
		try
		{
			RandomAccessFile readFile = new RandomAccessFile("Info.dat","rw");
			RandomAccessFile numberOfVaribles = new RandomAccessFile("n.dat","rw");
			readFile.seek(0);
			numberOfVaribles.seek(0);
			int loopLimit = numberOfVaribles.readInt()/2;
			System.out.println("loopLimit:"+loopLimit);
			for(int i=0;i<loopLimit;i++)
			{
				String userTemp = readFile.readUTF();
				int passwordTemp = readFile.readInt();
				if(passwordTemp==password)
				{
					foundUserName=true;
					break;
				}
				else if(userTemp==null)
					loopLimit++;
				else
				{
					foundUserName=false;
				}
			}
			readFile.close();
			numberOfVaribles.close();
		}
		catch(FileNotFoundException e)
		{
			System.out.println("File Not Found!");
		}
		catch(IOException e)
		{
			System.out.println("IO Exception");
		}
		return foundUserName;
	}