Take a look at my remember me property changes. You can use a custom setproperty action to set a value dependent on another value or a value being empty