Add register role to script and contract