Thank you very much for the great response. I have written this code exactly as provided in the Script Include and Business Rule. However, the System Log shows the following message:
"Invalid query detected, please check logs for details [Unknown field unique_code in table sys_user]"
I have already confirmed that the field exists, yet I still cannot understand why the Business Rule is not being executed.