A United Airlines flight attendant made a mistake that could have posed a huge security threat