Protection around checkin function