Moved IN_ADMINCP definition into the registration function

Ensures that no errors will come out when registering from any
registration modes.