public String[] checkLogin(String us,String pass){
		/*
		 * elegxei an einai swsta ta stoixia tou login kai epistrefei to epipedo tou user px(ipalilos)
		 */
		String[] priv= new String[2];
		priv[0]="0";
		try {
			pS = conn.prepareStatement("SELECT * FROM users WHERE username=? AND password=?");
			pS.setString(1, us);
			pS.setString(2, pass);
			rs=pS.executeQuery();
			while(rs.next())
				priv[0]=rs.getString("privilages");
			if(priv[0].equals("0")){
				pS = conn.prepareStatement("SELECT * FROM odigoi WHERE username=? AND password=?");
				pS.setString(1, us);
				pS.setString(2, pass);
				rs=pS.executeQuery();
				while(rs.next()){
					priv[0]="odigos";
					priv[1]=rs.getString("id");
				}
			}
			
		} catch (SQLException e) {
			e.printStackTrace();
			priv[0]="0";
		} catch (Exception e) {
			e.printStackTrace();
			priv[0]="0";
		}
		
		
		return priv;
	}