public boolean Check(String login, String password) {
		try {
			out = new PrintWriter(socket.getOutputStream());
			in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
			out.println(login);
			out.flush();
			out.println(password);
			out.flush();
			j = Integer.parseInt(in.readLine());
			switch(j){
				case 0 : return false;
				case 1 : return true; 
			}
		} catch (IOException e) {
			System.out.println("Error connecting to the Server.");
		}
         
		return false;
	}