Fixed same user login, join room and add room issue etc.
Fixed some issue and made some optimization.