checkin functionality