public boolean authenticate() throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(
				socket.getInputStream()));
		String user = in.readLine();
		String pass = in.readLine();

		BufferedReader br = new BufferedReader(new FileReader(
				"C:\\Users\\aawor_000\\workspace\\TCPServer\\src\\Users\\"
						+ user + ".txt"));
		try {

			String line = br.readLine();
			if (line.equals(pass)) {
				currentUser = user;

				System.out.println(currentUser + " has logged in. ");
				return true;
			} else {
				return false;
			}
		} finally {
			br.close();
		}

	}