You should define the default value in the register process instead of having the conditional fallback.