add Sigin up and fix chat bug