added logging to message addusers function