The first code Roger enters is 5318008 ("BOOBIES" backwards in calculator type), 7 digits long, and there was exactly enough room for this. The correct code turns out to be 4812, only 4 digits. Such security codes are a predetermined length, as indicated by the prompt shown. 4 isn't enough digits to be the code for this prompt.