My flight arrived in JFK at 8:30 PM via American Airlines. I then have a connecting flight to Lisbon at 11:25 PM (via TAP). The tickets were booked separately, so i have to pick up my baggage and if I miss my flight they’re not responsible. American Airlines is terminal 8 and my TAP flight departs fro terminal 5 so I’ll have to the AirTrain. Will 3 hours be enough time for me to pick up my luggage, take the air train and go through security?