Updated code for join event handler

User join event handler added