entry code guard