checkIn functionality