What exactly do you mean by “check out”? In the sense of a shopping cart building up entries and you then want to confirm the sale, or in terms of a hotel where the user has checked in, but now wants to leave?
If you mean the latter as I suspect, after inserting the user into the database table, retrieve the unique id of the row and use that to mark that they have checked out.