updating user status in chat