register action should be able to set default value