added userId and userType to publish message