add user rules functionality