implemented allowRegister