simple pubnub chat and login